<%--
  Created by IntelliJ IDEA.
  User: 11507
  Date: 2019/6/20
  Time: 12:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册账号</title>
</head>
<body>
<div class="container">
    <%@include file="template/header.jsp" %>
    <h2>注册</h2>
    <hr/>
    <form action="acountAdd.jsp" onsubmit="toVaild()" method="post">
        <div class="form-group">
            <label for="nickname">昵称：</label>
            <input name="name" type="" class="form-control" id="nickname" placeholder="Enter nickname">
        </div>
        <div class="form-group">
            <label for="email">账号：</label>
            <input name="account" class="form-control" id="email" placeholder="Enter account">
        </div>
        <div class="form-group">
            <label for="pwd">密码：</label>
            <input name="password" type="password" class="form-control" id="pwd" placeholder="Enter password">
        </div>
        <div class="form-group">
            <label for="pwd">确认密码：</label>
            <input type="password" class="form-control" id="pwd2" placeholder="Confirm password">
        </div>
        <div class="form-check">
            <label class="form-check-label">
                <input class="form-check-input" type="checkbox"> 记住我
            </label>
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>
    <%@include file="template/footer.jsp" %>
</div>

<%@include file="template/link.jsp" %>

<script>
    function toVaild() {
        // var val = document.getElementById("pwd").value;
        // var val2 =document.getElementById("pwd2").value;
        // if (val===val2){
        //     return true;
        // }else {
        //     return false;
        // }
        return false;
    }
</script>
</body>
</html>
